<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->	
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title><notempty name="page_title">{{$page_title}} - </notempty>{{$Think.CONFIG.SITE_NAME}}</title>
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="__ROOT__/skins/default/Public/style.css" media="screen" rel="stylesheet" type="text/css">
<script src="__PUBLIC__/js/do.js" data-cfg-corelib="__PUBLIC__/js/jquery.min.js"></script>
<script>
    Do.global(
        '__PUBLIC__/js/cute.js', 
        '__PUBLIC__/js/common.js',
        '__PUBLIC__/js/core/template.js',
        '__PUBLIC__/js/core/form.js',
        '__PUBLIC__/js/ui/dialog.js'
    );
    Do.add('flash', {path: '__PUBLIC__/js/core/flash.js', type:'js'});
    Do.add('select', {path: '__PUBLIC__/js/ui/select.js', type:'js'});
    Do.add('pager', {path: '__PUBLIC__/js/ui/pager.js', type:'js'});
    Do.add('editor', {path: '__PUBLIC__/js/kindeditor.js', type:'js'});
    Do.add('tabs', {path: '__PUBLIC__/js/ui/tabs.js', type:'js'});
    Do.add('validator',{path:'__PUBLIC__/js/plugin/validator.js', type:'js'});
    
    Do.add('AGL.tweets', {path: '__PUBLIC__/js/AGL.tweets.js', type:'js'});
    
    Do(function(){
        $.extend(Cute.config,{
            SITEURL: "{$Think.config.SITE_URL}",
            RESOURCEURL: "__ROOT__/skins/default/Public/",
            SCRIPTPATH: "__PUBLIC__/js/",
            SERVICEURL: "__APP__/api/"
        });
        AGL.config = $.extend(AGL.config,{
            SITENAME: "{{$Think.config.SITE_NAME}}",
            THEME:"{{$Think.config.DEFAULT_THEME}}",
            COOKIEPRE: "{{$Think.config.COOKIE_PREFIX}}",
            TWEETS_CATEGORY: ["<php>echo implode("\",\"",C("TWEETS_CATEGORY"))</php>"],
            NOTICEFREQUENCY: 60000	//PMcheck间隔
        });
        <notempty name="school">
        Cute.Class.namespace("AGL.school");
        AGL.school.info = {
            id: parseInt("{{$school.school_id}}"),
            abbr: "{{$school.school_abbr}}"
        };
        </notempty>
        Cute.Class.namespace("AGL.user");
        AGL.user.info = {
            user_id: parseInt("{{$Think.session.user_id}}")
        };
    });
</script>
</head>